package base.thread_JUC2.chapter04.demo08;

import java.util.Date;
import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;

public class Task implements Callable<String> {

    @Override
    public String call() throws Exception {
        while (true){
            System.out.println("开始执行任务："+new Date());
            TimeUnit.MILLISECONDS.sleep(500);
        }
    }
}
